package com.wnxy.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 充电卡
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
  @TableName("t_charging_card")
@ApiModel(value = "ChargingCard对象", description = "充电卡")
public class ChargingCard implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("充电卡表")
      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("充电卡编号")
      private String chargingCardNumber;

      @ApiModelProperty("会员等级")
      private String membershipLevel;

      @ApiModelProperty("开卡时间")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      private LocalDateTime cardOpeningTime;

      @ApiModelProperty("卡内金额")
      private BigDecimal chargingCardMoney;

      @ApiModelProperty("充电卡状态1:激活 2:未激活")
      private Integer chargingCardState;

      @ApiModelProperty("充电卡备注")
      private String chargingCardDetail;

      @ApiModelProperty("客户表id 外键")
      private Long customerId;

      @ApiModelProperty("充电站id 外键")
      private Long chargingStationId;

      @ApiModelProperty("逻辑删除")
      private Boolean isDeleted;


}
